<template>
	<view class="category">
		<!-- <goods-select height="100vh" :props="{label:'name',value:'id',children:'children'}" :options="list"
			@category-change="handelCategoryChange">
		</goods-select> -->
	</view>
</template>

<script>
	var app = getApp();
	// import GoodsSelect from '../../components/goods/cp-goods-select/cp-goods-select.vue'
	
	export default {
		// components: {
		// 	GoodsSelect
		// },
		data() {
			return {
				list: []
			}
		},
		onShow() {
			this.getGoodsTypeAll()
		},
		methods: {
			
			handelCategoryChange() {

			},
			getGoodsTypeAll() {
				uni.showLoading({
					title: '加载中'
				});
				app.globalData.util.request({
					url: "entry/wxapp/Api",
					data: {
						m: "monai_market",
						r: "goods.index.goods_type_all"
					},
					success: res => {
						this.list = res.data.data
						console.log(res)
						uni.hideLoading();
					},
					fail: res => {
						uni.hideLoading();
					}
				});
			}
		}
	}
</script>

<style scoped lang="scss">

</style>
